from apkn.workspaces import workspacesMessageFactory as _

DEFAULT_WORKSPACE_TYPES = [
                            'Blog Entry',
                            'Event',
                            'Document',
                            'File',
                            'Video',
                            'Image',
                            'Link',
                            ]
WORKSPACE_SORT_INDICES = [
                          ['',_('Releveance')],
                          ['created', _('Creation Date')],
                          ['modified', _('Modification Date')],
                          ['sortable_title', _('Title')],
                          ['portal_type', _('Document Type')],
                         ]
WORKSPACE_SEARCH_FILTERS = [
                {'identity':'portal_type',
                 'verbose': _('--of all types--'),
                 'q_values': [{'item_id':k, 'item_value':k}
                                for k in DEFAULT_WORKSPACE_TYPES
                              ],
                 'selected_value':'',
                },
                {'identity': 'sort_on',
                  'verbose': _('sorted by'),
                  'q_values' : [{'item_id': k[0], 'item_value': k[1]} 
                                    for k in WORKSPACE_SORT_INDICES
                               ],
                 'selected_value':'',
                }
                ]
